package chapter03;

public class Test01_Student {
    public static void main(String[] args) {
        //实例化类
        Student s1 = new Student();
        s1.name = "张三";
        s1.study();
    }
}
class Student{
    //属性
    String name;
    int age;
    //方法
    void study(){
        System.out.println(name+"在认真学习");
    }
}
